package com.exam.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.exam.entity.Teacher;

import java.util.List;

public interface TeacherService {

    //分页查询教师信息
    IPage<Teacher> findAll(Page<Teacher> page);

    //查询所有教师信息
    List<Teacher> findAll();

    //根据教师ID查询教师信息
    Teacher findById(Integer teacherId);

    //根据教师ID删除教师信息
    int deleteById(Integer teacherId);

    //更新教师信息
    int update(Teacher teacher);

    //添加教师信息
    Teacher add(Teacher teacher);

    //根据教师工号查询教师密码
    int editPassword(Teacher teacher);
}
